package com.fpc.cn.springbootutil.mybatisLog;

import org.apache.ibatis.cache.CacheKey;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Signature;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Component;

/**
 * @date 2025/4/27
 * @author fupengcheng
 * @describe  查询sql拦截器，逻辑已经再父类中实现，
 */
@Component
@Conditional(MpInterceptorCondition.class)
@Intercepts(value = {
        @Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class, CacheKey.class, BoundSql.class }),
        @Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class }) })
public class MybatisQueryInterceptor extends MybatisSqlInterceptorBase {

}

